//
//  OrderOnlineViewController.h
//  OrderOnline
//
//  Created by YAPPA_3 on 11/28/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "libAppViewController.h"
#import "HomeViewManager.h"
#import "ReadViewManager.h"
#import "TitleViewManager.h"
#import "OrderViewManager.h"

typedef enum
{
	eVMTypeInvalid = -1,
	eVMTypeMin = 0,
	eVMTypeSplash = eVMTypeMin,
	eVMTypeHome,	
	eVMTypeReadView,
	eVMTypeTitle,
	eVMTypeOrderView,
	eVMTypeMax
}eVMType;

@interface OrderOnlineViewController : libAppViewController {

	eVMType					m_prevViewType;
	eVMType					m_nowViewType;
	
	UIView*					m_currentView;
	ViewController*			m_viewController;
	HomeViewManager*		m_homeManager;
	ReadViewManager*		m_readManager;
	TitleViewManager*		m_titleManager;
	OrderViewManager*		m_orderManager;
	
	BOOL					m_isSlideShow;
	int						m_typeMenu;
}
@property(nonatomic) BOOL m_isSlideShow;
@property(nonatomic) int  m_typeMenu;;

- (void)removeViewObject:(eVMType)type;
- (void)changePrevView:(BOOL)is_anim;
- (void)changeHomeView:(BOOL)is_anim;
- (void)changeReadView:(BOOL)is_anim;
- (void)changeTitleView:(BOOL)is_anim;
- (void)changeOrderView:(BOOL)is_anim;
- (void) changePage:(int) pageNo;
- (void) setSlideShow: (BOOL) isSlideShow;
- (void) refreshOrder;


+ (OrderOnlineViewController *)Shared;
@end

